package com.wx.cloud.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.WeightedResponseTimeRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Rule {
    @Bean
    public IRule getRule(){
        return new WeightedResponseTimeRule();//需要改成其他策略就修改这
    }

}
